<?php $this->load->view("funcRegUsuario_js");?>
<div class="page-header">
    <h2 >Registro de Usuarios</h2>
</div>
<form name="regUsuario" class="form-horizontal well" method="post" onsubmit="return validarRegistro2()" action="<?php echo base_url(); ?>usuario/registrarUsuario" accept-charset="utf-8">
<div class="container-fluid ">
    <?php sipcop_openFieldset();?> 
    <?php sipcop_legend('Empresa');?>    
    <div class="row-fluid">
                
        <div class="span4 ">
          <?php
          $options=array(array('value'=>'Juridica','label'=>'Jurídica'),array('value'=>'Natural','label'=>'Natural'));
            sipcop_radioInlineName('tipPer', 'tipPer','Tipo Persona(*)', $options, '', true);
            sipcop_inputText("razon", "Razón Social(*)", "", true);
            sipcop_inputText("ruc", "RUC(*)", "", true);                    
          ?>  
        </div>
        <div class="span4 ">
        <?php 
             sipcop_inputText("rublo", "Rublo(*)", "", true);    
            sipcop_inputText("direc", "Dirección(*)", "", true);
            sipcop_inputText("telef", "Telefono(*)", "", true);            
           
          ?>  
        </div> 
         <?php sipcop_closeFieldset();?>
    </div>    
</div>
 <div class="container-fluid">
    <?php sipcop_openFieldset();?> 
    <?php sipcop_legend('Representante Legal');?>
    <div class="row-fluid">        
        <?php          
            $options=array(array('value'=>'G','label'=>'Femenino'),array('value'=>'M','label'=>'Masculino'));
            sipcop_radioInlineName('gener', 'gener','Género(*)', $options, '', true);?>
    </div>
    <div class="row-fluid">                
        <div class="span4 ">
          <?php           
            sipcop_inputText("nombres", "Nombres(*)", "", true);
            sipcop_inputText("apellid", "Apellidos(*)", "", true);                    
          ?>  
        </div>
        <div class="span4 ">
        <?php 
                 
            sipcop_inputText("dni", "DNI(*)", "", true);
            sipcop_inputText("telefcEL", "Telef/Cel", "", true);            
           
          ?>  
        </div> 
         <?php sipcop_closeFieldset();?>
    </div>    
</div>
    
    <div class="container-fluid">
    <?php sipcop_openFieldset();?> 
    <?php sipcop_legend('Datos de Cuenta');?>    
    <div class="row-fluid">                
        <div class="span4 ">
          <?php           
            sipcop_inputTextEnvent("email", "Email(*)", "", true, "onblur=verificaEmail(this)");
            sipcop_inputTextEnvent("confirEm", "Confirmar Email(*)", "", true,"onblur=EmailNoCoincide()");                    
          ?>  
        </div>
        
        <div class="span4 ">
        <?php 
                 
            sipcop_inputPass("pass", "Contraseña(*)", "", true);
            sipcop_inputPassEvent("confiPass", "Confirmar Contraseña(*)", "", true,"onblur=PassNoCoincide()");            
           
          ?>  
        </div>
        
         <?php sipcop_closeFieldset();?>
    </div>
        <div id="confirmEmail"><input type="hidden" id="invalido" value="0"></div>
        <div class="alert alert-error">        
        <h4>¡Atención!</h4>
        Debe llenar los campos (*)
        </div>
    <div class="row-fluid">        
        <div class="span4 offset6">
            <button class="btn  btn-success" type="submit">Registrarme</button>
            <button class="btn  btn-danger" type="button" onclick="regresarlogin()">Cancelar</button>
        </div>
    </div>
</div>
</form>
